package com.sdyeda.readiot.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "com.sdyeda.readiot")
public class SettingConfig {

	//private String sqlGetiotinfo;
	//private Map<String, String> sqlWritedata;
	//private Map<String, String> sqlReaddata;
	//private Map<String, String> iottype;

	//private String setPassword;		//调零密码	
	
	//private String scheduledType;
	//private long scheduledDelay;
	//private String scheduledCron;

	//private int retrytimes;
	private boolean datalog;
	private String infodir;
	
	private String license;

	public String getInfodir() {
		return infodir;
	}

	public void setInfodir(String infodir) {
		this.infodir = infodir;
	}

	public boolean isDatalog() {
		return datalog;
	}

	public void setDatalog(boolean datalog) {
		this.datalog = datalog;
	}



/*
	public Map<String, String> getIottype() {
		return iottype;
	}

	public void setIottype(Map<String, String> iottype) {
		this.iottype = iottype;
		for(String key:iottype.keySet()) {
			try {
				//很奇怪
				String value = new String((iottype.get(key).getBytes("ISO-8859-1")),"UTF-8");
				this.iottype.put(key, value);
				//this.iottype.put(key,iottype.get(key));
			}catch (Exception e) {
				this.iottype.put(key,iottype.get(key));
			}
			
		}
	}
*/
	public String getLicense() {
		return license;
	}

	public void setLicense(String license) {
		this.license = license;
	}

}
